import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { dev } from "./utils/index";
import { AppController } from './app.controller'; // 首页
import { AppService } from './app.service'; // 首页
import { UserModule } from './modules/user/user.module'; // 用户
import { AuthModule } from './modules/auth/auth.module'; // 权限登录
import { MenuModule } from './modules/menu/menu.module'; // 后台菜单
import { DishesModule } from './modules/dishes/dishes.module';//菜单
import { UploadModule } from './modules/upload/upload.module';//上传
import { MerchantsModule } from './modules/merchants/merchants.module';//商铺
import { SpecsModule } from './modules/specs/specs.module';//规格
import { OrderModule } from './modules/order/order.module';//订单
import { ProductsModule } from './modules/products/products.module';//商品
import { CategoriesModule } from './modules/categories/categories.module';//分类
@Module({
  imports: [TypeOrmModule.forRoot({ ...dev }), UserModule, AuthModule, MenuModule, DishesModule, UploadModule, MerchantsModule,SpecsModule, OrderModule, ProductsModule, CategoriesModule],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule { }
